# -*- coding: utf-8 -*-
from django.conf.urls import url
from django.contrib import admin
from  books import views
from books.views import exam,index


urlpatterns = [

     url(r'^book_drf/$', exam),
     #url(r'^books_drf/(?P<pk>\d+)/$', views.BookDRFView.as_view()),
     url(r'^books_drf/$', views.BookDRFView.as_view()),
     url(r'^books/$',views.Books.as_view()),

     url(r'books_update/(?P<pk>\d+)/$',views.Books.as_view()),#更新图书数据
     url(r'^hero/$',views.Hero.as_view())
     ,url(r'^index/$',exam),
     url(r'^$',index)

]
